<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColToDesignResultImgTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('design_result_img', function (Blueprint $table) {
            $table->integer('sex')->default(0)->comment('性别')->after('thumb_img_id');
            $table->string('face')->nullable()->comment('朝向')->after('thumb_img_id');
        });

        Schema::table('design_body_img', function (Blueprint $table) {
            $table->integer('sex')->default(0)->comment('性别')->after('img_id');
            $table->string('face')->nullable()->comment('朝向')->after('img_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
